package org.blog.util;

public class StringHelper {

	/**
	 * 
	 * @param str
	 * @return
	 */
	public static boolean isEmpty(String str) {
		if (str == null || "".equals(str))
			return true;
		return false;
	}

	/**
	 * 
	 * @param str
	 * @return
	 */
	public static boolean isEmptyTrim(String str) {
		if (str == null || "".equals(str.trim()))
			return true;
		return false;
	}

	/**
	 * 
	 * @param str
	 * @return
	 */
	public static String nullToStr(String str) {
		if (str == null) {
			return "";
		}
		return str;
	}
}
